package com.yb0os1.adapter.reids2etcd.etcd;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.ValueOperations;

public class EtcdRedisTemplateAdapter extends StringRedisTemplate {

    private final ValueOperations<String, String> ops;

    public EtcdRedisTemplateAdapter(EtcdValueOperations etcdValueOperations) {
        ops = etcdValueOperations;
    }

    @Override
    public ValueOperations<String, String> opsForValue() {
        return ops;
    }

    @Override
    public void afterPropertiesSet() {

    }
}
